﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using mepostras.BLL;

namespace mepostras.BO
{
    public interface IFaqBo
    {
        /// <summary>
        /// cập nhật Faq
        /// </summary>
        /// <param name="faq"></param>
        /// <param name="messageCode"></param>
        /// <returns></returns>
        bool Update(Faq faq, out string messageCode);

        /// <summary>
        /// Tạo mới Faq
        /// </summary>
        /// <param name="faq"></param>
        /// <param name="messageCode"></param>
        /// <returns></returns>
        bool Insert(Faq faq, out string messageCode);

        /// <summary>
        /// Khách hàng tạo câu hỏi
        /// </summary>
        /// <param name="faq"></param>
        /// <param name="messageCode"></param>
        /// <returns></returns>
        bool Book(Faq faq, out string messageCode);

        /// <summary>
        /// Xóa Faq
        /// </summary>
        /// <param name="id"></param>
        /// <param name="messageCode"></param>
        /// <returns></returns>
        bool Delete(int id, out string messageCode);
    }
}
